package com.itheima.ydd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ydd_cate")
public class Cate {
    /*分类id*/
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /*分类名称*/
    private String catename;
    /*字段图标class*/
    private String icon;
    /*排序数字*/
    @TableField("sort_num")
    private Integer sort_num;
    /*是否为默认数据，null表示不是，1表示是*/
    @TableField("default_data")
    private String default_data;

}
